package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.system.domain.SysSystemReport;
import org.dromara.system.domain.vo.SysSystemReportVo;

import java.util.List;
import java.util.Map;

/**
 * @author Lion Li
 */
public interface SysSystemReportMapper extends BaseMapperPlus<SysSystemReport, SysSystemReportVo> {


    @MapKey("week_day")
    Map<String, Map<String, Object>> selectValue();

    void insertAlarmReport(@Param("reportId") Long id, @Param("alarmIds") List<Long> alarmIds);

    IPage<SysSystemReportVo> getReportLogList(Page<SysSystemReportVo> page, @Param("tunnelId") Long tunnelId, @Param("date") String date);
}
